﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
 
        <LinearGradientBrush x:Key="GridBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
            <GradientStop Offset="0" Color="Black"/>
            <GradientStop Offset="0.7" Color="DimGray"/>
            <GradientStop Offset="1" Color="Gray"/>
        </LinearGradientBrush>

        <ControlTemplate x:Key="GlasButton" TargetType="{x:Type Button}">
        <Border CornerRadius="7" BorderThickness="2" Margin="4" Padding="0">
            <Border.BorderBrush>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Offset="0" Color="#444444"/>
                    <GradientStop Offset="1" Color="#111111"/>
                </LinearGradientBrush>
            </Border.BorderBrush>
            <Border.Background>
                <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                    <GradientStop Offset="0" Color="#d0d0d0"/>
                    <GradientStop Offset="1" Color="#222222"/>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Border Name="Mask1" CornerRadius="5" Background="#ff000000" Margin="2"/>
                <Border CornerRadius="3" BorderThickness="0.0" BorderBrush="#ff000000" Margin="2" Name="ButtonRect">
                    <Border.OpacityMask>
                        <VisualBrush Visual="{Binding ElementName=Mask1}"/>
                    </Border.OpacityMask>
                    <Border.Background>
                        <LinearGradientBrush StartPoint="1,0" EndPoint="0,1">
                            <GradientStop Offset="0" Color="#aaaaaa"/>
                            <GradientStop Offset="0.7" Color="#000000"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <Grid>
                        <Grid.Background>
                            <RadialGradientBrush GradientOrigin="-0.3,-1.0" RadiusX="2" RadiusY="2">
                                <GradientStop Offset="0" Color="#44000000"/>
                                <GradientStop Offset="0.5" Color="#66000000"/>
                                <GradientStop Offset="0.5" Color="#aa000000"/>
                                <GradientStop Offset="1" Color="#cc000000"/>
                            </RadialGradientBrush>
                        </Grid.Background>
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" />
                        <Rectangle Name="foreground" Fill="#40000000"/>
                    </Grid>
                </Border>
            </Grid>
        </Border>
        <ControlTemplate.Triggers>
                <!-- Bei Mausbewegung über den Button ... -->
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Fill" TargetName="foreground" Value="#1000ff00"/>                   
                </Trigger>
                <Trigger Property="IsPressed" Value="True">
                    <Setter Property="Fill" TargetName="foreground" Value="#10ffff00" />
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
</ResourceDictionary>